/* 个人中心页面专有样式 - 类BOSS直聘风格 */

:root {
    --profile-bg-color: #f8f8f8; /* 页面背景色 */
    --profile-header-bg: linear-gradient(180deg, #4a7dff 0%, #5e8eff 100%); /* 蓝色渐变 */
    --profile-card-bg: var(--white-color);
    --profile-text-primary: var(--dark-color);
    --profile-text-secondary: var(--gray-color);
    --profile-text-highlight: var(--primary-color);
    --profile-icon-color: #555;
    --profile-section-padding: 15px;
    --profile-card-radius: 12px;
    --profile-grid-gap: 10px;
}

body {
    background-color: var(--profile-bg-color);
}

.profile-page {
    padding-bottom: 60px; /* 避免内容被底部导航遮挡 */
}

/* 新版头部 */
.profile-header-new {
    background: var(--profile-header-bg);
    padding: 20px var(--profile-section-padding) 15px;
    position: relative;
    color: var(--white-color);
    border-radius: 0 0 16px 16px;
}

.user-info-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 顶部对齐 */
    margin-bottom: 15px;
}

.user-details-main {
    flex: 1;
    margin-right: 15px;
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px;
    color: var(--white-color);
}

.user-status {
    font-size: 13px;
    margin: 0 0 5px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: inline-flex; /* 让图标紧随文字 */
    align-items: center;
}

.user-status i {
    font-size: 12px;
    margin-left: 5px;
}

.user-school {
    font-size: 13px;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.avatar-container-new {
    position: relative;
    flex-shrink: 0;
}

.avatar-new {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.edit-avatar-new {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 22px;
    height: 22px;
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.profile-actions-icons {
    position: absolute;
    top: 15px;
    right: var(--profile-section-padding);
    display: flex;
    gap: 15px;
}

.action-icon-btn {
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 22px;
    padding: 5px;
    cursor: pointer;
}

/* 新版数据概览 */
.data-overview-new {
    display: flex;
    justify-content: space-around;
    background-color: var(--profile-card-bg);
    border-radius: var(--profile-card-radius);
    padding: 15px 0;
    margin: -30px var(--profile-section-padding) 15px; /* 负margin使其覆盖在header下方 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative; /* 保证在header之上 */
    z-index: 1;
}

.data-item {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.data-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--profile-text-primary);
    margin-bottom: 4px;
}

.data-item p {
    font-size: 12px;
    color: var(--profile-text-secondary);
    margin: 0;
}

/* 主内容区 */
.main-content-profile {
    padding: 0 var(--profile-section-padding);
}

.module {
    background-color: var(--profile-card-bg);
    border-radius: var(--profile-card-radius);
    margin-bottom: 15px;
    padding: var(--profile-section-padding);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.module-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px;
    color: var(--profile-text-primary);
}

/* 核心功能区 Grid */
.core-functions {
    padding-bottom: 5px; /* 调整内边距 */
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--profile-grid-gap);
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
}

.grid-icon {
    font-size: 26px; /* 增大图标 */
    margin-bottom: 8px;
    color: var(--profile-icon-color);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 12px;
    display: inline-block;
}

/* 不同图标颜色 */
.resume-icon { color: #4a7dff; background-color: rgba(74, 125, 255, 0.1); }
.intention-icon { color: #ff7d4a; background-color: rgba(255, 125, 74, 0.1); }
.history-icon { color: #4acaff; background-color: rgba(74, 202, 255, 0.1); }
.followed-icon { color: #af4aff; background-color: rgba(175, 74, 255, 0.1); }

.grid-item span {
    font-size: 13px;
    color: var(--profile-text-primary);
}

/* 简历优化入口 */
.resume-promo {
    padding: var(--profile-section-padding);
}

.promo-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.promo-text h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
}

.promo-text p {
    font-size: 12px;
    color: var(--profile-text-secondary);
    margin: 0;
}

.promo-btn {
    background-color: rgba(74, 125, 255, 0.1);
    color: #4a7dff;
    border: none;
    border-radius: 15px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.promo-btn i {
    font-size: 10px;
    margin-left: 4px;
}

.resume-completeness {
    font-size: 12px;
    color: var(--profile-text-secondary);
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.resume-completeness span {
    margin-right: 10px;
}

.progress-bar-bg {
    flex: 1;
    height: 6px;
    background-color: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--profile-text-highlight);
    border-radius: 3px;
}

/* 我的服务 / 帮助与反馈 List */
.service-section,
.help-section {
    padding-bottom: 5px; /* 调整内边距 */
}

.service-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.service-item:last-child {
    border-bottom: none;
}

.list-icon {
    font-size: 20px;
    color: var(--profile-icon-color);
    margin-right: 15px;
    width: 24px; /* 固定宽度对齐 */
    text-align: center;
}

/* 不同图标颜色 */
.assessment-icon { color: #2ecc71; }
.learning-icon { color: #f39c12; }
.consulting-icon { color: #3498db; }
.registration-icon { color: #9b59b6; }
.feedback-icon { color: #e74c3c; }
.faq-icon { color: #1abc9c; }
.contact-icon { color: #34495e; }

.service-item span {
    flex: 1;
    font-size: 15px;
    color: var(--profile-text-primary);
}

.arrow-icon {
    font-size: 14px;
    color: var(--profile-text-secondary);
}

/* 暗黑模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --profile-bg-color: #121212;
        --profile-header-bg: linear-gradient(180deg, #3a5fbb 0%, #4a7dff 100%);
        --profile-card-bg: #1e1e1e;
        --profile-text-primary: #e0e0e0;
        --profile-text-secondary: #aaa;
        --profile-icon-color: #bbb;
    }
    .service-item {
        border-bottom-color: #333;
    }
    .progress-bar-bg {
        background-color: #444;
    }
    .resume-icon { background-color: rgba(74, 125, 255, 0.15); }
    .intention-icon { background-color: rgba(255, 125, 74, 0.15); }
    .history-icon { background-color: rgba(74, 202, 255, 0.15); }
    .followed-icon { background-color: rgba(175, 74, 255, 0.15); }

    .promo-btn {
        background-color: rgba(74, 125, 255, 0.2);
        color: #87abff;
    }
}

/* 移除或调整旧样式 (根据需要) */
.profile-header, .data-overview, .career-assessment, .resume-center, .job-progress, .registration-list, .favorites, .consulting, .learning, .settings {
    /* display: none; */ /* 可以暂时隐藏旧模块 */
} 